<!DOCTYPE html>
<html lang="zh-cn">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<meta name="renderer" content="webkit">
		<title>添加学校新闻</title>
		<import type='css' file="admin.pintuer4.css.pintuer" />
		<import type='css' file="admin.pintuer4.css.admin" />
	</head>

	<body>
		<include file="Public:header" />
		<!--内容-->
		<div class="admin" style="width:80%;margin:0 auto;">
			<form method="post" action="{:U('ArticleSchool/article_school_news_update')}" class="form form-block" enctype="multipart/form-data">
				<input type="hidden" name="id" value="{$obj.id}">
				<input type="hidden" name="p" value="{$p}">
				<input type="hidden" name="c_id" value="{$c_id}">
				<input type="hidden" name="search_word" value="{$search_word}">
				<div class="form-group">
					<div class="label"><label for="article_title">标题</label></div>
					<div class="field">
						 <input type="text" class="input" id="title" name="title" size="50" value="{$obj.title}" data-validate="required:必填"/>
					</div>
				</div>
				<div class="form-group">
					<div class="label"><label for="article_title">作者</label></div>
					<div class="field">
						 <input type="text" class="input" id="title" name="editor" value="{$obj.editor}" size="50" data-validate="required:必填"/>
					</div>
				</div>
				<div class="form-group">
					<div class="label"><label for="abstract">摘要</label></div>
					<div class="field">
						 <input type="text" class="input" id="abstract" name="abstract" value="{$obj.abstract}" size="50" data-validate="required:必填"/>
					</div>
				</div>
				<div class="form-group">
				    <div class="label"><label for="sort">排序</label></div>
				    <div class="field">
				      <input type="text" class="input" id="sort" name="sort" value="{$obj.sort}" size="50" data-validate="required:必填"/>
				    </div>
				</div>
				<div class="form-group">
					<div class="label"><label for="content">内容</label></div>
					<div class="field">
						<textarea id="content" name="content">{$obj.content}</textarea>
					</div>
				</div>
				
				<div class="form-button">
				<button class="button border-green" type="submit">修改</button>
				</div>
			</form>

		</div>
		<!--底部-->
		
		<import type='js' file="admin.pintuer4.js.jquery" />
		<import type='js' file="admin.pintuer4.js.pintuer" />
		<import type='js' file="admin.pintuer4.js.respond" />
		<import type='js' file="admin.pintuer4.js.layer" />
		<import type='js' file="admin.pintuer4.js.admin" />
		<script type="text/javascript" src="__PUBLIC__/kindeditor/kindeditor-min.js"></script>
    	<script type="text/javascript" src="__PUBLIC__/kindeditor/lang/zh_CN.js"></script>
		<script type="text/javascript">
		$(function(){
			//富文本框初始化
			KindEditor.ready(function(K) {
				
		         window.editor = K.create('#content',{
		        	 width:"100%",
		        	 height:"500",
		        	 cssPath : '__PUBLIC__/kindeditor/plugins/code/prettify.css',
					 uploadJson : '__PUBLIC__/kindeditor/php/upload_json.php',
					 fileManagerJson : '__PUBLIC__/kindeditor/php/file_manager_json.php',
		         });
		        });
		});
		</script>
		<script>
			$(function() {
				
				//大于移动端800宽度才弹出提示
				if ($(window).width() >= 800) {
					layer.open({
						type: 1,
						shade: false,
						title: false, //不显示标题
						area: ['420px', '640px'],
						content: $('#alert-talk'), //捕获的元素
						cancel: function(index) {
							layer.close(index);
						}
					});
				}
			});
		</script>
	</body>

</html>